using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TaskItem : TaskBase
{
    public int itemTypeId;
    public int itemCount;

    protected override bool OnGetIsFinsh()
    {
        return ItemMgr.Instance.GetItemCount(itemTypeId) >= itemCount;
    }

    protected override void OnFinsh()
    {
        ItemMgr.Instance.IncrItemCount(itemTypeId, -itemCount);
    }
}
